using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;
using Domain.UQBuy.Model.Entity;


namespace Domain.UQBuy.Model.Map {
    
    
    public class OzUserDetailMap : ClassMapping<OzUserDetail> {
        
        public OzUserDetailMap() {
			Table("OZ_User_Detail");
			Schema("dbo");
			Lazy(true);
			Id(x => x.DetailId, map => { map.Column("Detail_ID"); map.Generator(Generators.Assigned); });
			Property(x => x.DetailAge, map => { map.Column("Detail_Age"); map.Precision(10); });
			ManyToOne(x => x.OzUser, map => { map.Column("User_ID"); map.Cascade(Cascade.None); });

        }
    }
}
